import TechLayout from "./techLayout"
import "./index.less"

export default function layout(props: any) {
    // console.log(props)
    // console.log(/\editor/.test(props.location.pathname))
    if(/\editor/.test(props.location.pathname)){
        return <div id='editor' style={{width:'100%',height:'100%'}}>{props.children}</div>
    }else{
        return <TechLayout>{props.children}</TechLayout>

    }
    // if (props.location.pathname.include('editor')) {
    //     return <Head></Head>
    // } 

        // return  <TechLayout>{props.children}</TechLayout>

}